﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using ECCIT.Extension.Weibo_v2.Common;

namespace ECCIT.Extension.Weibo_v2.Net
{
    /// <summary>
    /// Defines methods to perform HTTP request.
    /// </summary>
    public interface IHttpRequest
    {
        /// <summary>
        /// Performs the HTTP request.
        /// </summary>
        /// <returns>The HTTP response.</returns>
        string Request ();

        /// <summary>
        /// Performs the HTTP request asynchronously.
        /// </summary>
        void RequestAsync (AsyncCallback<string> callback);
    }
}
